<extend name="common:base" />

<block name="content">
	<ul class="nav nav-tabs">
		<li><a href="{{:url('weixin/index')}}" class="index-url">菜单列表</a></li>
		<li class="active"><a href="{{:url('weixin/createmenu')}}">新增菜单</a></li>
	</ul>
	
	<form name="dataForm" class="form-horizontal top15" action="{{:url('weixin/addmenusave')}}">
		<div class="form-group">
			<label class="col-sm-3 control-label"><span class="must-red">*</span>一级菜单</label>
			</br>
			<div class="col-sm-8">
				<select name="cid" class="form-control width300">
				<option value="0">--选择分类--</option>
				<volist id="vo" name="wx_menu">
				  <option value="{{$vo.id}}">{{$vo.name}}</option>
				</volist>
				</select>
				 （如果是一级菜单，选择“无”即可）
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label"><span class="must-red">*</span>  菜单名 </label>
			</br>
			<div class="col-sm-8">
				<input type="text" name="name" class="form-control width300">
			<p>（可创建最多 3 个一级菜单，每个一级菜单下可创建最多 5 个二级菜单。编辑中的菜单不会马上被用户看到，请放心调试。）</p>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label"><span class="must-red">*</span>类型</label>
			</br>
			<div class="col-sm-8">
				<select name="type" class="form-control width300">
				<option value="0">--选择分类--</option>
				<option selected value="view">链接</option>
				<option  value="click">触发关键字</option>
				<option  value="scancode_push">扫码</option>
				<option  value="scancode_waitmsg"> 扫码（等待信息）</option>
				<option  value="pic_sysphoto">系统拍照发图</option>
				<option  value="pic_photo_or_album">拍照或者相册发图</option>
				<option  value="pic_weixin">微信相册发图</option>
				<option  value="location_select">地理位置</option>
				</select>
				
			</tr>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">备注</label>
			<div class="col-sm-8">
				<textarea name="remark" class="form-control width300" style="height: 55px; resize: none;"></textarea>
			</div>
		</div>

		<div class="form-group" style="margin-top: 30px;">
			<div class="col-sm-offset-3 col-sm-8">
				<a class="btn btn-primary btn-save">保 存</a>
				<a class="btn btn-default left20 btn-cancel">返 回</a>
			</div>
		</div>
	</form>
</block>
